/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utils.manga;

import java.util.ArrayList;
import java.util.List;
import utils.Servers.ServerM;
import utils.Servers.SubManga;

/**
 *
 * @author killan
 */
public class Chapter {

    private List<Page> pag;
    protected ServerM servidor;
    protected  String indexChapter;
    private Manga manga;

    public Chapter(String index,Manga manga) {
        this.pag = new ArrayList<Page>();
        this.indexChapter = index;
        SubManga subM= (SubManga) servidor;
        subM.getPages(manga.nameManga, index);
    }

    public int getMaxPages() {
        return this.pag.size();
    }

    public String getNumber() {
        return this.indexChapter;
    }
}
